﻿using Abp.DynamicEntityProperties;
using Abp.UI.Inputs;
using AbpProjectTemplate.Domain.Users;

namespace AbpProjectTemplate.Components.DynamicEntityProperties
{
    public class AppDynamicEntityPropertyDefinitionProvider : DynamicEntityPropertyDefinitionProvider
    {
        public override void SetDynamicEntityProperties(IDynamicEntityPropertyDefinitionContext context)
        {
            ////throw new NotImplementedException();
            context.Manager.AddAllowedInputType<SingleLineStringInputType>();
            //context.Manager.AddAllowedInputType<CheckboxInputType>();
            //context.Manager.AddAllowedInputType<ComboboxInputType>();

            ////entities that can have dynamic property
            //context.Manager.AddEntity<Country>();
            context.Manager.AddEntity<User, long>();
        }
    }
}
